#include "../m_tree/mTree.c"
#include "aa_neighborhood.h"

#include <stdlib.h>
int main (int argc, char * argv[]) {
  struct mTree * tree;
  struct store * store;

  if(argc != 6) {
    printf("This program requires 5 arguments: cache size (in objects), the mtree object store, its fat, the mtree node store, and it's fat.\n");
    return 1;
    
  }

  store = store_open_cached(argv[2],argv[3], sizeof(struct aa_neighborhood), 100, atoi(argv[1]));

  tree = mTree_open_cached(store, argv[4],argv[5], atoi(argv[1]), (double(*)(const void*, const void*))&aa_neigh_dist);

  mTree_verify(tree);
  
  mTree_close(tree);
  store_close(store);
  return 0;
}
